package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.vo.account.AccountDeductVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserAccountService extends IService<UserAccount> {


    void initUserAccount(Long userId);

    BigDecimal getAvailableAmount(Long userId);

    UserAccount getUserAccountByUserId(Long userId);

    void checkAndDeduct(AccountDeductVo accountDeductVo);
}
